package com.designpattern.factorymethod;

/**
 * @author Liusr
 * @date 2023/3/8
 * @package com.designpattern.factorymethod
 * @Description: 工厂方法模式
 */
public class Client {
	public static void main(String[] args) {
		IFactory factory = new FactoryA();
		Phone phone = factory.createPhone();
		phone.faXinXi();
		phone.daDianHua();
	}
}
